package cn.tedu.duotai;

public class Person {
    String name;
    int age;
    public void eat(){
        System.out.println("吃饭");
    }
}
class Teacher extends Person{
    String type;//学科
    public void teach(){
        System.out.println("好好讲课！");
    }
}
class Student extends Person{
    String sid;
    public void study(){
        System.out.println("好好学习！");
    }
}
